package cn.iocoder.yudao.module.base.controller.admin.productwarehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 产品仓储信息新增/修改 Request VO")
@Data
public class ProductWarehouseSaveReqVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24754")
    private Long id;

    @Schema(description = "产品信息", requiredMode = Schema.RequiredMode.REQUIRED, example = "18572")
    @NotNull(message = "产品信息不能为空")
    private Long productId;

    @Schema(description = "默认入库仓", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "默认入库仓不能为空")
    private Long inWarehouse;

    @Schema(description = "默认入库库位", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long inPosition;

    @Schema(description = "默认出库仓", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "默认出库仓不能为空")
    private Long outWarehouse;

    @Schema(description = "默认出库库位", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long outPosition;

    @Schema(description = "标准库存")
    private BigDecimal standard;

    @Schema(description = "安全库存")
    private BigDecimal safe;

    @Schema(description = "补货点")
    private BigDecimal fill;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    private String remark;

}